import request from '@/utils/request';

export async function getReport(params) {
  const { page, pageSize, ...others } = params;
  return request(`/api/mall/admin/quality/select?pageSize=${pageSize}&pageNum=${page}`, {
    method: 'POST',
    data: others,
    requestType: 'json',
  });
}

export async function selectItem(params) {
  return request('/api/mall/admin/quality/selectItem', {
    method: 'POST',
    data: params,
  });
}

export async function updateReport(params) {
  return request(`/api/mall/admin/quality/update`, {
    method: 'POST',
    data: params,
  });
}
